﻿using System;
using System.Collections.Generic;
using ProjScan.Tools;
using UnityEngine;

namespace ProjScan.Submodules.Shader_Analysis
{
	// Token: 0x0200017F RID: 383
	internal class ShaderManager
	{
		// Token: 0x06000D59 RID: 3417 RVA: 0x0003B6DC File Offset: 0x000398DC
		public void AdjustManager(ShaderPassKeyManager shaderPassKeyManager)
		{
			shaderPassKeyManager.shaderPassList.Clear();
			shaderPassKeyManager.keywordList.Clear();
			shaderPassKeyManager.bool_1 = false;
			shaderPassKeyManager.bool_2 = shaderPassKeyManager.bool_3;
			bool flag = shaderPassKeyManager.path.EndsWith(".shadergraph");
			if (flag)
			{
				shaderPassKeyManager.isGraphShader = true;
			}
			else
			{
				ShaderPassProcessor.I.ProcessShaderData(shaderPassKeyManager);
			}
		}

		// Token: 0x06000D5A RID: 3418 RVA: 0x0003B744 File Offset: 0x00039944
		public static ulong GetShaderVariantCount(Shader inputShader)
		{
			object[] parameters = new object[]
			{
				inputShader,
				true
			};
			ulong result;
			AssemblyTools.I.TryGetMethodResult<ulong>("UnityEditor.ShaderUtil", "GetVariantCount", out result, parameters);
			return result;
		}

		// Token: 0x04000827 RID: 2087
		public static ShaderManager I = new ShaderManager();

		// Token: 0x04000828 RID: 2088
		public List<ShaderPassKeyManager> shaderPassKeyManagers;

		// Token: 0x02000180 RID: 384
		private class Class43
		{
			// Token: 0x04000829 RID: 2089
			public SAKeyword sakeyword_0;

			// Token: 0x0400082A RID: 2090
			public List<ShaderPassKeyManager> list_0;

			// Token: 0x0400082B RID: 2091
			public bool bool_0;
		}
	}
}
